home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / rbbs_pc / msgtos13.zip / BINK.BAT next >
DOS Batch File  |  1990-03-31  |  3KB  |  65 lines

  1. REM MSGCLEAN is created by MSGTOSS and contains RENUMBERING and message
  2. REM maintenance commands.   Also, the /FMAS and /SECL switch(s) on the
  3. REM "MSGTOSS /TOSS ..." command line is recommended.   Read DOCS throughly
  4. REM on these.
  5.  
  6.  
  7. REM Example of a Single Node system.
  8.  
  9. :RECMAIL
  10.      C:
  11.      CD\BT
  12.      Msgtoss /TOSS /PREP /FIX /MWSET
  13.      If Exist Msgclean.bat Call Msgclean.bat
  14.  
  15. :SCAN
  16.      rbbsmail /f:arearbbs.bbs scan /l /o
  17.      ommm -iC:\BT\binkley.prm -mC:\MAIL\NMAIL\ -hC:\BT\OUT\ -cC:\BT\ommm.ctl -d -z1 -q -a
  18.      Goto START
  19. ------------------------------------------------------------------------
  20. REM Example of a Multi-Node system, using ALLFIG to lock-out the [J] command
  21. REM before tossing.  Uses the /WAIT switch to make sure all users are off-line.
  22. REM The /WAIT-F will exit, creating MSGWAIT.BAT if all clear.  Using just
  23. REM /WAIT will instead SHELL out and execute the CONFLOCK command and return
  24. REM to MSGTOSS to complete tossing.  Also notice the /PKTS:2 switch.  This
  25. REM tells MSGTOSS to NOT CREATE msgwait.bat UNLESS there are at least 2 PKTs.
  26.  
  27. REM Place these two lines at the VERY TOP of your batch file
  28.  
  29. If Exist C:\BT\*.PKT Goto RECMAIL
  30. If Exist C:\BT\*.?UT Goto RECMAIL
  31.  
  32. :START
  33.      Execute Binkley.... Blah, blah....
  34.  
  35. REM Every time your binkley.bat (or other front end mailer) batch file is
  36. REM executed, the bat file will check to see whether there are PKTS to process.
  37. REM If there are, it will go through the RECMAIL portion to make sure all users
  38. REM are off-line.  If all users are off-line, MSGTOSS will process.  If not, it
  39. REM will wait till the next time the batch file is executed and try again.
  40. REM Also notice the "SPAZ" command in the batch file.  This is taken directly
  41. REM from the MSGTOSS.CFG file and the "UNARCH---->" parameter is commented out
  42. REM by a ";".  The reason for executing SPAZ exterior to MSGTOSS is so you can
  43. REM detect the presence off *.PKTs at the TOP of your Binkley batch file.  In
  44. REM other words, the mail packets (arcmail) will ALWAYS be unarched after you
  45. REM receive mail by SPAZ, but not processed by MSGTOSS until all users are
  46. REM off line.
  47.  
  48. :RECMAIL
  49.      C:
  50.      CD\BT
  51.      SPAZ -F -Q C:\MAIL\FILES C:\BT\
  52.      Msgtoss /WAIT-F /PKTS:2
  53.      If Not Exist Msgwait.bat Goto START
  54.      ALLFIG C:\RBBS\ALL1 130 N J 100 \n
  55.      Msgtoss /TOSS /PREP /FIX /MWSET
  56.      If Exist Msgclean.bat Call Msgclean.bat
  57.  
  58. :SCAN
  59.      rbbsmail /f:arearbbs.bbs scan /l /o
  60.      ommm -iC:\BT\binkley.prm -mC:\MAIL\NMAIL\ -hC:\BT\OUT\ -cC:\BT\ommm.ctl -d -z1 -q -a
  61.      ALLFIG C:\RBBS\ALL1 130 N J 40 \n
  62.      Goto START
  63.  
  64.  
  65.